package com.estar.integaration.entity.NoSQL;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Author: YJL
 * Date: 2021/10/14 14:55
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Res {
  private String code;
  private String data;

  public static Res success(String code,String data){
    Res res = new Res(code,data);
    return res;
  }

  public static Res fail(String code,String data){
    Res res = new Res(code,data);
    return res;
  }
}
